package com.tangzx.builder.abc;

import com.tangzx.builder.abc.string.AbcString;

public class Method extends AbcElement {
	public int[] paramTypes;
	public int nameIndex;
	public int flags;
	public int[] optionalParamTypes;
	public int[] optionalParamKinds;
	public int[] paramNames;
	public int returnType;

	public Method(int return_type, int[] param_types, int name_index,
			int flags, int[] optional_param_types, int[] optional_param_kinds,
			int[] param_names) {
		returnType = return_type;
		paramTypes = param_types;
		nameIndex = name_index;
		this.flags = flags;
		optionalParamTypes = optional_param_types;
		optionalParamKinds = optional_param_kinds;
		paramNames = param_names;
	}

	@Override
	public String toString() {
		AbcString as = cpool.getString(nameIndex);
		return as.toString();
	}
}
